package com.ssly.weixin.xichang.admin.service;

import com.ssly.weixin.xichang.admin.domain.Admin;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

public interface AdminService extends UserDetailsService {
    /**
     * 根据用户名获取用户
     * @param username
     * @return
     */
     Admin getAdminByName(String username);
}
